package com.CST.mapper.cst.zx;

import com.CST.bo.zx.ProjectAllBO;
import com.CST.bo.zx.ProjectDetailBO;
import com.CST.entity.zx.ZxEtlAccountInfo;
import com.CST.entity.zx.ZxSumMoney;
import com.CST.vo.zx.ProjectAllVO;
import com.CST.vo.zx.ProjectDetailVO;
import com.CST.vo.zx.ZxFinicialDetailVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ly
 * @since 2023-03-14
 */
@Repository
public interface ZxSumMoneyMapper extends BaseMapper<ZxSumMoney> {


    List<ZxSumMoney> queryBaseMapper(@Param("date") Integer date);

    boolean saveBaseBatch(@Param("list") List<ZxSumMoney> list);

    List<ProjectDetailVO> selectAllProjectDetail(ProjectDetailBO projectDetailBO);

    List<ProjectAllVO> selectAllProject(ProjectAllBO projectAllBO);

    ZxFinicialDetailVO queryFinicialDetail(ProjectDetailBO projectDetailBO);

    //获取当月的期初金额
    List<ZxEtlAccountInfo> getETLAccountByPeriod(Integer lastMonthPeriod);

}
